﻿
//其中WinFormWindow类的代码如下（你可以自己命名成自己喜欢的类名）：
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MarkdownFilesCreator
{
    public class WinFormWindow : System.Windows.Forms.IWin32Window
    {
        IntPtr _handle;
        public WinFormWindow(IntPtr handle)
        {
            _handle = handle;
        }

        #region IWin32Window Members
        IntPtr System.Windows.Forms.IWin32Window.Handle
        {
            get { return _handle; }
        }
        #endregion
    }
}